package com.zzyl.serve.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.Instant;

@ApiModel(description = "报警数据处理dto类")
@Data
public class AlertDataProcessDto {
    @ApiModelProperty("报警数据id")
    private Long id;

    private String processingResult;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "UTC")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Instant processingTime;

}
